﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Himp.Erp.Migrations
{
    /// <inheritdoc />
    public partial class modify_table_Outbound_chk : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<Guid>(
                name: "ChkOperId",
                schema: "Erp",
                table: "OutboundRec",
                type: "uuid",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "ChkOperName",
                schema: "Erp",
                table: "OutboundRec",
                type: "text",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "Chktime",
                schema: "Erp",
                table: "OutboundRec",
                type: "timestamp without time zone",
                nullable: true);

            migrationBuilder.AddColumn<Guid>(
                name: "ChkOperId",
                schema: "Erp",
                table: "InboundRec",
                type: "uuid",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "ChkOperName",
                schema: "Erp",
                table: "InboundRec",
                type: "text",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "Chktime",
                schema: "Erp",
                table: "InboundRec",
                type: "timestamp without time zone",
                nullable: false,
                defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "ChkOperId",
                schema: "Erp",
                table: "OutboundRec");

            migrationBuilder.DropColumn(
                name: "ChkOperName",
                schema: "Erp",
                table: "OutboundRec");

            migrationBuilder.DropColumn(
                name: "Chktime",
                schema: "Erp",
                table: "OutboundRec");

            migrationBuilder.DropColumn(
                name: "ChkOperId",
                schema: "Erp",
                table: "InboundRec");

            migrationBuilder.DropColumn(
                name: "ChkOperName",
                schema: "Erp",
                table: "InboundRec");

            migrationBuilder.DropColumn(
                name: "Chktime",
                schema: "Erp",
                table: "InboundRec");
        }
    }
}
